Unref tile and stipple when finalizing a gc. (#320789, Nickolay V.
authorMatthias Clasen <mclasen@redhat.com>
Tue, 8 Nov 2005 21:46:34 +0000 (21:46 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 8 Nov 2005 21:46:34 +0000 (21:46 +0000)
2005-11-08  Matthias Clasen  <mclasen@redhat.com>

* gdk/gdkgc.c (gdk_gc_finalize): Unref tile and stipple when
finalizing a gc.  (#320789, Nickolay V. Shmyrev)

ChangeLog
ChangeLog.pre-2-10
gdk/gdkgc.c

index 516c9856bc0527280cb55aaefeb3ccf226ddddd5..ae249425f8b9217e49997492bbe88d71e1bdde12 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-11-08  Matthias Clasen  <mclasen@redhat.com>
 
+       * gdk/gdkgc.c (gdk_gc_finalize): Unref tile and stipple when
+       finalizing a gc.  (#320789, Nickolay V. Shmyrev)
+
        * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Ignore
        icons if they would make the request large enough to cause
        Xlib to loose the connection.  (#320909, Claudio Saavedra)
index 516c9856bc0527280cb55aaefeb3ccf226ddddd5..ae249425f8b9217e49997492bbe88d71e1bdde12 100644 (file)
@@ -1,5 +1,8 @@
 2005-11-08  Matthias Clasen  <mclasen@redhat.com>
 
+       * gdk/gdkgc.c (gdk_gc_finalize): Unref tile and stipple when
+       finalizing a gc.  (#320789, Nickolay V. Shmyrev)
+
        * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Ignore
        icons if they would make the request large enough to cause
        Xlib to loose the connection.  (#320909, Claudio Saavedra)
index 6a6f12047daaf4c8d25d43b292c8e79e333c6e6b..cf2a01da2c11998bd0440bc173ad86689206bc14 100644 (file)
@@ -188,6 +188,10 @@ gdk_gc_finalize (GObject *object)
     gdk_region_destroy (priv->clip_region);
   if (gc->colormap)
     g_object_unref (gc->colormap);
+  if (priv->tile)
+    g_object_unref (priv->tile);
+  if (priv->stipple)
+    g_object_unref (priv->stipple);
 
   G_OBJECT_CLASS (gdk_gc_parent_class)->finalize (object);
 }